package com.example.demo.admin.client;/**
 * Created by kete on 2018-09-03.
 */

import com.example.demo.admin.hystrix.TestServiceHystrix;
import com.example.demo.common.persistence.model.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 作者：kete
 * 创建时间：2018-09-03 10:05
 * 功能描述：
 * 版本：
 */
@FeignClient(value = "admin-app",fallback = TestServiceHystrix.class)
public interface TestServiceClient {

    @RequestMapping(value = "/user/getUserInfo", method = RequestMethod.GET)
    User getUserInfo();
}
